﻿<%@ Page Title="User Profile Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="User.aspx.cs" Inherits="WebPages.Account.UserProfile" EnableViewState="true" ViewStateMode="Enabled" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        <asp:Literal ID="TitleUserName" runat="server"></asp:Literal>'s Profile Page
    </h2>
    <div class="profile">
        <fieldset class="information">
            <legend>
                Portrait
            </legend>
            <p>
                <asp:Image ID="PortraitImage" runat="server" CssClass="userPortrait64x64" ImageUrl="~/Images/none.png"></asp:Image>
            </p>
            <asp:Panel runat="server" ID="UploadPortrait">
                <p>
                    <asp:Label ID="PortraitUploadControlLabel" runat="server" AssociatedControlID="PortraitUploadControl">Change your portrait:</asp:Label>
                    <asp:FileUpload ID="PortraitUploadControl" runat="server" />
                    <asp:Button id="PortraitSubmitButton" Text="Upload image" OnClick="PortraitSubmitButton_Click" runat="server"/>
                </p>
            </asp:Panel>
        </fieldset>

        <fieldset class="information">
            <legend>
                Personal information
            </legend>
            <p>
                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                <asp:Literal ID="UserName" runat="server"></asp:Literal>
            </p>
            <p>
                <asp:Label ID="GenderLabel" runat="server">Gender:</asp:Label>
                <asp:Literal ID="PublicGender" runat="server"></asp:Literal>
                <asp:DropDownList id="PrivateGender" runat="server" EnableViewState="true" ViewStateMode="Enabled"></asp:DropDownList>
            </p>
        </fieldset>
        <p class="submitButton">
            <asp:Button ID="SubmitButton" runat="server" OnClick="SubmitButton_Click" Text="Submit" />
        </p>
    </div>
</asp:Content>
